/**
* eCommerce Application Sample for J2EE Training 
* Local interface definition for the Cart bean
* EJB3.0 
* @author Fabienne Boyer - Didier Donsez - may 2006
*/

package ecom.beans;

import java.util.List;

public interface CartLocal {
		
	/**
	 * 
	 * @return list of products put into the cart
	 */
	List<CartProductBean> listOfProducts();
	
	/**
	 * 
	 * @return total price of the products put into
	 */
	float getTotalPrice();
 
	/**
	 * 
	 * @return shipping price for delivery
	 */
	float getShippingPrice();
	
	/**
	 * 
	 * @return true if the ordering succeeded or false if not
	 */
	boolean ordering();
	
	public void modifyQuantity(String ref, int newQt);
	
	public void remove(String ref);
	
	public void emptyCart();
	
	public void putInto(String ref);
	
	public void setCustomer(CustomerBean customer);
	
}
